Use linear keyframes to interpolate animated property value linearly between keyframes.
More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
template<typename TValueType>
class kanzi::KeyframeAnimation< TValueType >::LinearKeyframe
Use linear keyframes to interpolate animated property value linearly between keyframes.
template<typename TValueType >
template<typename TValueType >
template<typename TValueType >
Creates linear keyframe.
- Parameters
-
value | The keyframe value of the animated property. |
template<typename TValueType >
TValueType kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::getValue |
( |
const TValueType & |
currentValue, |
|
|
float |
normalizedTime |
|
) |
| |
|
inlineoverridevirtual |
Returns the value for the animated property at a given time.
- Parameters
-
currentValue | The current value of the animated property. |
normalizedTime | The time at which you want to get the value of the animated property. 0.0 corresponds to the time of the previous keyframe. 1.0 corresponds to the time of this keyframe. |
- Returns
- The value of the animated property at a given time.
Implements kanzi::KeyframeAnimation< TValueType >::Keyframe.
The documentation for this class was generated from the following file: